import Vue from "vue";
//引入vue-router
import VueRouter  from "vue-router";


//声明使用vue-router
Vue.use(VueRouter)
export default new VueRouter({
    mode:"history",
    //注册路由
    routes:[
        {
            path:'/xinche',
            name:'xinche',
            component:()=>import('../views/XinChe.vue')
        },
        {
            path:'/xinnengyuan',
            name:'xinnengyuan',
            component:()=>import('../views/XinNengYuan.vue')
        },
        {
            path:'/haohuapingpai',
            name:'haohuapingpai',
            component:()=>import('../views/HaoHuaPingPai.vue')
        },
        {
            path:'/faxian',
            name:'faxian',
            component:()=>import('../views/FaXian.vue')
        },
        {
            path:'/ershou',
            name:'ershou',
            component:()=>import('../views/ErShou.vue')
        },
        {
            path:'/me',
            name:'me',
            component:()=>import('../views/Me.vue')
        }
    ]
})